export default {
  data() {
    return { //
      formProperty: {
        visible: false,
        formAttrs: {
          "label-width": "100px",
          inline: true
        },
        isBtnText: {
          left: "保存",
          right: "取消"
        },
        options: [{
          type: "input",
          value: "",
          hide: true,
          label: "id",
          prop: "id"

        },
        {
          type: "input",
          value: "",
          label: "客户全称",
          prop: "nameFull",
          // backfill: true,
          attrs: {
            style: {
              width: "200px"
            },
            clearable: true,
            placeholder: "请输入客户全称"
          }
        },
        {
          type: "date-picker",
          value: [],
          label: "时间",
          // backfill: true,
          prop: "contract",
          attrs: {
            style: {
              width: "200px"
            },
            type: "daterange",
            "range-separator": "至",
            "start-placeholder": "开始日期",
            "end-placeholder": "结束日期",
            clearable: true
          }
        },
        {
          type: "input",
          value: "",
          label: "联系方式",
          prop: "mobile",
          attrs: {
            style: {
              width: "200px"
            },
            clearable: true,
            placeholder: "请输入联系方式"
          }
        },
        {
          type: "input",
          value: "",
          label: "客户地址",
          prop: "address",
          attrs: {
            style: {
              width: "200px"
            },
            clearable: true,
            placeholder: "请输入客户地址"
          }
        },
        {
          type: "input",
          value: "",
          label: "备注",
          prop: "remark",
          attrs: {

            style: {
              width: "200px"

            },
            clearable: true,
            placeholder: "请输入备注"
          }
        }
        ]
      }
    };
  },
  methods: {
    // 打开展示表单
    openSimpleForm() {
      this.formProperty.visible = true;
    },
    saveForm(formData) {
      console.log(formData, "fun");
      this.formProperty.visible = false;
      // formData.fun();
    }
  }
};
